package cn.iocoder.yudao.module.crm.controller.admin.importtask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 导入任务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ImportTaskRespVO {

    @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18390")
    @ExcelProperty("任务编号")
    private Long id;

    @Schema(description = "任务状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("任务状态")
    private Integer status;

    @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("任务类型")
    private Integer bizType;

    @Schema(description = "所属模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "1206")
    @ExcelProperty("所属模块")
    private Long moduleId;

    @Schema(description = "是否公海", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否公海")
    private Integer pool;

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("文件路径")
    private String filePath;

    @Schema(description = "文件名", example = "芋艿")
    @ExcelProperty("文件名")
    private String fileName;

    @Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long ownerUserId;

    @Schema(description = "重复字段校验", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("重复字段校验")
    private Integer repeatField;

    @Schema(description = "重复时的操作", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("重复时的操作")
    private Integer repeatHandle;

    @Schema(description = "数据总量", example = "25853")
    @ExcelProperty("数据总量")
    private Integer dataCount;

    @Schema(description = "插入数量", example = "7814")
    @ExcelProperty("插入数量")
    private Integer insertCount;

    @Schema(description = "更新数量", example = "16698")
    @ExcelProperty("更新数量")
    private Integer updateCount;

    @Schema(description = "失败数量", example = "23902")
    @ExcelProperty("失败数量")
    private Integer failCount;

    @Schema(description = "完成时间")
    @ExcelProperty("完成时间")
    private LocalDateTime finishTime;

    @Schema(description = "错误描述")
    @ExcelProperty("错误描述")
    private String errorMsg;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "错误数据url")
    @ExcelProperty("错误数据url")
    private String errorFileUrl;

}